package com.jijia.webbase.service.impl;

import com.jijia.webbase.domain.User;
import com.jijia.webbase.mapper.UserMapper;
import com.jijia.webbase.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserService implements IUserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public  User getUserByUserName(String userName) {
        User user = userMapper.findByUsername(userName);
        return user;
    }

    @Override
    public User[] getAllUserInfo() {
        return userMapper.getAllUserInfo();
    }
}
